<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="lfn" uri="http://tags.lorizz.com/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>XXX | Albums</title>
</head>
<body>
	<jsp:include page="jsp/header.jsp"/>
	<c:choose>
		<c:when test="${not empty albums}">
			<c:forEach items="${albums}" var="album">
				<div style="width:155px;height:155px;float:left">
					<div>
						<c:choose>
							<c:when test="${not empty imageVars[album.id]}">
								<a href="/i/v/${album.id}-30-1"><img src="${lfn:externalize(imageVars[album.id].uri)}"/></a>
							</c:when>
							<c:otherwise>
								<c:choose>
									<c:when test="${imageCounts[album.id] == 0}">
										<a href="/i/v/${album.id}-30-1"><img src="/resources/empty.thumbnail.middle.jpg"/></a>
									</c:when>
									<c:otherwise>
										<a href="/i/v/${album.id}-30-1"><img src="/resources/processing.thumbnail.middle.jpg"/></a>
									</c:otherwise>
								</c:choose>
							</c:otherwise>
						</c:choose>
					</div>
					<div>${album.title}(${imageCounts[album.id]})</div>
				</div>
			</c:forEach>
		</c:when>
		<c:otherwise>
			No albums.
		</c:otherwise>
	</c:choose>
</body>
</html>